testdir=$(pkglibdir)
noinst_SCRIPTS = @PACKAGE@-test.dll
EXTRA_DIST = $(test_sources) $(test_sources_in)
CLEANFILES = @PACKAGE@-test.dll @PACKAGE@.dll
DISTCLEANFILES = Makefile.in

test_sources_in = 
test_generated_sources = $(test_sources_in:.in=)
test_sources = DataFileTest.cs

test_build_sources = $(addprefix $(srcdir)/, $(test_sources))
test_build_sources += $(test_generated_sources)

@PACKAGE@-test.dll: $(test_build_sources)
	cp ../src/@PACKAGE@.dll .
	$(MCS) -target:library -out:$@ $(test_build_sources) -r:nunit.framework -r:@PACKAGE@
